public class ArrayReverse {
    public static void main(String[] args) {
        //把数组的元素内容反转
        int arr[] = {11,22,33,44,55,66};
        int temp = 0;
        for (int i = 0;i< arr.length/2;i++) {
            temp = arr[arr.length-1-i];
            arr[arr.length-1-i] = arr[i];
            arr[i] = temp;
        }
        for (int i = 0;i< arr.length;i++) {
            System.out.println(arr[i]+"\t");
        }
    }
}
